<template>
  <view class="container yh_flex_y" id="con">
    <view class="top">
      <image src="../../static/images/logo.png" class="logo" @click="getdate" />
    </view>
    <view class="content">
      <!-- #ifdef MP-WEIXIN -->
      <!-- <view class="text">微信小程序</view> -->
      <!-- #endif -->
      <!-- #ifdef H5 -->
      <!-- <view class="text">H5</view> -->
      <!-- #endif -->
      <!-- #ifdef H5 -->
      <button class="btn_common" @click="sendH5Message">H5订阅通知</button>

     
      <!-- #endif -->
      <button class="btn_common" @click="callPhone">拨打电话</button>
      <button class="btn_common" @click="doCopy">点击复制</button>
      <button class="btn_common" @click="jump('../upImg/index')">
        上传图片
      </button>
      <button class="btn_common" @click="jump('../prize/index')">抽奖</button>
      <button class="btn_common" @click="jumpWeb('../webView/index')">
        内嵌h5传参
      </button>
      <button class="btn_common" @click="jump('../infoSub/index')">
        表单提交
      </button>
      <button class="btn_common" @click="jump('../map/index')">地图</button>
      <button class="btn_common" @click="jump('../token/index')">
        token修改
      </button>
      <button class="btn_common" @click="jump('../err/end/index')">
        活动下线
      </button>
      <button class="btn_common" @click="jump('../err/notOnline/index')">
        未上线
      </button>
      <button class="btn_common" @click="jump('../err/public400/index')">
        活动火爆
      </button>
      <button class="btn_common" @click="openRecord">我的记录</button>

      <!-- 小程序展示 -->
      <!-- #ifdef MP-WEIXIN -->
      <button class="btn_common" @click="sendMsg">模板消息</button>
      <button
        type="default"
        class="btn_common"
        open-type="getPhoneNumber"
        @getphonenumber="decryptPhoneNumber"
      >
        获取手机号
      </button>
      <!-- #endif -->
    </view>

    <view class="foot yh_flex_x">
      <button
        @click="openPopUp"
        class="btn_explain"
        hover-class="none"
      ></button>
      <button
        class="btn_record"
        hover-class="none"
        @click="openRecord"
      ></button>
    </view>

    <pop-set-location v-if="!location" @getlocation="getlocation" />
    <pop-up ref="popUp" />
    <pop-record ref="popRecord" />
  </view>
</template>

<script src="./control.js"></script>
<style lang="scss" src="./style.scss" scoped></style>
